<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

class CreateBaseTable extends Migration
{
    public function up()
    {
        //公告
        Schema::create('base', function (Blueprint $table) {
            $table->string('domain')->nullable()->comment('域名');
            $table->string('title')->comment('网站名称');
            $table->string('kf_tel')->nullable()->comment('客服电话');
            $table->string('kf_qq')->comment('客服QQ');
            $table->string('copyright_name')->comment('版权所有者');
            $table->string('icp_id')->comment('ICP备案号');
            $table->string('icp_url')->default('http://www.beian.miit.gov.cn')-> comment('ICP官网');
       //     $table->string('status')->default(false)-> comment('网站开关');
        });

    }

    public function down()
    {
        Schema::dropIfExists('base');
    }
}
